//
//  NSString+CaculateWidthOrHeight.m
//  Mamaji
//
//  Created by chengxiaoai on 2017/7/4.
//  Copyright © 2017年 玛马吉. All rights reserved.
//

#import "NSString+CaculateWidthOrHeight.h"

@implementation NSString (CaculateWidthOrHeight)
+ (CGSize)getSizeFromString:(NSString *)srcSting Font:(UIFont *)font srcRect:(CGSize)scrRect {
    return  [srcSting boundingRectWithSize:scrRect options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : font} context:nil].size;
}
@end
